<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="myTags" tagdir="/WEB-INF/tags/components" %>
<%@ page import="data.ContentTypeDB" %>

<!-- Author: Minh-Tuan Ta -->
<script type="text/javascript">
$(function() {
    $('#wysiwyg').wysiwyg();
});
</script>

<div id="updatePostDiv">
	<form action="UpdatePost" method="post">
		<input type="hidden" name="postID" value="${post.contentID }" />
		<div style="width:500px;">
		<div class="floatLeft"><label for="postTitle">Post Title:</label></div>
		<div class="floatRight"><input required="required" type="text" name="postTitle" value="${post.contentTitle }" /></div><br style="clear:both" />
		<div class="floatLeft"><label for="postContent">postContent:</label>
		</div>
		<div class="floatRight"><textarea class="rte-zone" id="wysiwyg" rows="15" cols="110" name="postContent">${post.content }</textarea></div><br style="clear:both" />
		<input type="submit" name="submit" value="Update Post" />
		</div>
	</form>
</div>